#ifndef BIT_REVERSE_H
#define BIT_REVERSE_H

RT_L1_DATA short bit_rev_LUT[FFT_LEN] = {
    0,
    256,
    512,
    768,
    64,
    320,
    576,
    832,
    128,
    384,
    640,
    896,
    192,
    448,
    704,
    960,
    16,
    272,
    528,
    784,
    80,
    336,
    592,
    848,
    144,
    400,
    656,
    912,
    208,
    464,
    720,
    976,
    32,
    288,
    544,
    800,
    96,
    352,
    608,
    864,
    160,
    416,
    672,
    928,
    224,
    480,
    736,
    992,
    48,
    304,
    560,
    816,
    112,
    368,
    624,
    880,
    176,
    432,
    688,
    944,
    240,
    496,
    752,
    1008,
    4,
    260,
    516,
    772,
    68,
    324,
    580,
    836,
    132,
    388,
    644,
    900,
    196,
    452,
    708,
    964,
    20,
    276,
    532,
    788,
    84,
    340,
    596,
    852,
    148,
    404,
    660,
    916,
    212,
    468,
    724,
    980,
    36,
    292,
    548,
    804,
    100,
    356,
    612,
    868,
    164,
    420,
    676,
    932,
    228,
    484,
    740,
    996,
    52,
    308,
    564,
    820,
    116,
    372,
    628,
    884,
    180,
    436,
    692,
    948,
    244,
    500,
    756,
    1012,
    8,
    264,
    520,
    776,
    72,
    328,
    584,
    840,
    136,
    392,
    648,
    904,
    200,
    456,
    712,
    968,
    24,
    280,
    536,
    792,
    88,
    344,
    600,
    856,
    152,
    408,
    664,
    920,
    216,
    472,
    728,
    984,
    40,
    296,
    552,
    808,
    104,
    360,
    616,
    872,
    168,
    424,
    680,
    936,
    232,
    488,
    744,
    1000,
    56,
    312,
    568,
    824,
    120,
    376,
    632,
    888,
    184,
    440,
    696,
    952,
    248,
    504,
    760,
    1016,
    12,
    268,
    524,
    780,
    76,
    332,
    588,
    844,
    140,
    396,
    652,
    908,
    204,
    460,
    716,
    972,
    28,
    284,
    540,
    796,
    92,
    348,
    604,
    860,
    156,
    412,
    668,
    924,
    220,
    476,
    732,
    988,
    44,
    300,
    556,
    812,
    108,
    364,
    620,
    876,
    172,
    428,
    684,
    940,
    236,
    492,
    748,
    1004,
    60,
    316,
    572,
    828,
    124,
    380,
    636,
    892,
    188,
    444,
    700,
    956,
    252,
    508,
    764,
    1020,
    1,
    257,
    513,
    769,
    65,
    321,
    577,
    833,
    129,
    385,
    641,
    897,
    193,
    449,
    705,
    961,
    17,
    273,
    529,
    785,
    81,
    337,
    593,
    849,
    145,
    401,
    657,
    913,
    209,
    465,
    721,
    977,
    33,
    289,
    545,
    801,
    97,
    353,
    609,
    865,
    161,
    417,
    673,
    929,
    225,
    481,
    737,
    993,
    49,
    305,
    561,
    817,
    113,
    369,
    625,
    881,
    177,
    433,
    689,
    945,
    241,
    497,
    753,
    1009,
    5,
    261,
    517,
    773,
    69,
    325,
    581,
    837,
    133,
    389,
    645,
    901,
    197,
    453,
    709,
    965,
    21,
    277,
    533,
    789,
    85,
    341,
    597,
    853,
    149,
    405,
    661,
    917,
    213,
    469,
    725,
    981,
    37,
    293,
    549,
    805,
    101,
    357,
    613,
    869,
    165,
    421,
    677,
    933,
    229,
    485,
    741,
    997,
    53,
    309,
    565,
    821,
    117,
    373,
    629,
    885,
    181,
    437,
    693,
    949,
    245,
    501,
    757,
    1013,
    9,
    265,
    521,
    777,
    73,
    329,
    585,
    841,
    137,
    393,
    649,
    905,
    201,
    457,
    713,
    969,
    25,
    281,
    537,
    793,
    89,
    345,
    601,
    857,
    153,
    409,
    665,
    921,
    217,
    473,
    729,
    985,
    41,
    297,
    553,
    809,
    105,
    361,
    617,
    873,
    169,
    425,
    681,
    937,
    233,
    489,
    745,
    1001,
    57,
    313,
    569,
    825,
    121,
    377,
    633,
    889,
    185,
    441,
    697,
    953,
    249,
    505,
    761,
    1017,
    13,
    269,
    525,
    781,
    77,
    333,
    589,
    845,
    141,
    397,
    653,
    909,
    205,
    461,
    717,
    973,
    29,
    285,
    541,
    797,
    93,
    349,
    605,
    861,
    157,
    413,
    669,
    925,
    221,
    477,
    733,
    989,
    45,
    301,
    557,
    813,
    109,
    365,
    621,
    877,
    173,
    429,
    685,
    941,
    237,
    493,
    749,
    1005,
    61,
    317,
    573,
    829,
    125,
    381,
    637,
    893,
    189,
    445,
    701,
    957,
    253,
    509,
    765,
    1021,
    2,
    258,
    514,
    770,
    66,
    322,
    578,
    834,
    130,
    386,
    642,
    898,
    194,
    450,
    706,
    962,
    18,
    274,
    530,
    786,
    82,
    338,
    594,
    850,
    146,
    402,
    658,
    914,
    210,
    466,
    722,
    978,
    34,
    290,
    546,
    802,
    98,
    354,
    610,
    866,
    162,
    418,
    674,
    930,
    226,
    482,
    738,
    994,
    50,
    306,
    562,
    818,
    114,
    370,
    626,
    882,
    178,
    434,
    690,
    946,
    242,
    498,
    754,
    1010,
    6,
    262,
    518,
    774,
    70,
    326,
    582,
    838,
    134,
    390,
    646,
    902,
    198,
    454,
    710,
    966,
    22,
    278,
    534,
    790,
    86,
    342,
    598,
    854,
    150,
    406,
    662,
    918,
    214,
    470,
    726,
    982,
    38,
    294,
    550,
    806,
    102,
    358,
    614,
    870,
    166,
    422,
    678,
    934,
    230,
    486,
    742,
    998,
    54,
    310,
    566,
    822,
    118,
    374,
    630,
    886,
    182,
    438,
    694,
    950,
    246,
    502,
    758,
    1014,
    10,
    266,
    522,
    778,
    74,
    330,
    586,
    842,
    138,
    394,
    650,
    906,
    202,
    458,
    714,
    970,
    26,
    282,
    538,
    794,
    90,
    346,
    602,
    858,
    154,
    410,
    666,
    922,
    218,
    474,
    730,
    986,
    42,
    298,
    554,
    810,
    106,
    362,
    618,
    874,
    170,
    426,
    682,
    938,
    234,
    490,
    746,
    1002,
    58,
    314,
    570,
    826,
    122,
    378,
    634,
    890,
    186,
    442,
    698,
    954,
    250,
    506,
    762,
    1018,
    14,
    270,
    526,
    782,
    78,
    334,
    590,
    846,
    142,
    398,
    654,
    910,
    206,
    462,
    718,
    974,
    30,
    286,
    542,
    798,
    94,
    350,
    606,
    862,
    158,
    414,
    670,
    926,
    222,
    478,
    734,
    990,
    46,
    302,
    558,
    814,
    110,
    366,
    622,
    878,
    174,
    430,
    686,
    942,
    238,
    494,
    750,
    1006,
    62,
    318,
    574,
    830,
    126,
    382,
    638,
    894,
    190,
    446,
    702,
    958,
    254,
    510,
    766,
    1022,
    3,
    259,
    515,
    771,
    67,
    323,
    579,
    835,
    131,
    387,
    643,
    899,
    195,
    451,
    707,
    963,
    19,
    275,
    531,
    787,
    83,
    339,
    595,
    851,
    147,
    403,
    659,
    915,
    211,
    467,
    723,
    979,
    35,
    291,
    547,
    803,
    99,
    355,
    611,
    867,
    163,
    419,
    675,
    931,
    227,
    483,
    739,
    995,
    51,
    307,
    563,
    819,
    115,
    371,
    627,
    883,
    179,
    435,
    691,
    947,
    243,
    499,
    755,
    1011,
    7,
    263,
    519,
    775,
    71,
    327,
    583,
    839,
    135,
    391,
    647,
    903,
    199,
    455,
    711,
    967,
    23,
    279,
    535,
    791,
    87,
    343,
    599,
    855,
    151,
    407,
    663,
    919,
    215,
    471,
    727,
    983,
    39,
    295,
    551,
    807,
    103,
    359,
    615,
    871,
    167,
    423,
    679,
    935,
    231,
    487,
    743,
    999,
    55,
    311,
    567,
    823,
    119,
    375,
    631,
    887,
    183,
    439,
    695,
    951,
    247,
    503,
    759,
    1015,
    11,
    267,
    523,
    779,
    75,
    331,
    587,
    843,
    139,
    395,
    651,
    907,
    203,
    459,
    715,
    971,
    27,
    283,
    539,
    795,
    91,
    347,
    603,
    859,
    155,
    411,
    667,
    923,
    219,
    475,
    731,
    987,
    43,
    299,
    555,
    811,
    107,
    363,
    619,
    875,
    171,
    427,
    683,
    939,
    235,
    491,
    747,
    1003,
    59,
    315,
    571,
    827,
    123,
    379,
    635,
    891,
    187,
    443,
    699,
    955,
    251,
    507,
    763,
    1019,
    15,
    271,
    527,
    783,
    79,
    335,
    591,
    847,
    143,
    399,
    655,
    911,
    207,
    463,
    719,
    975,
    31,
    287,
    543,
    799,
    95,
    351,
    607,
    863,
    159,
    415,
    671,
    927,
    223,
    479,
    735,
    991,
    47,
    303,
    559,
    815,
    111,
    367,
    623,
    879,
    175,
    431,
    687,
    943,
    239,
    495,
    751,
    1007,
    63,
    319,
    575,
    831,
    127,
    383,
    639,
    895,
    191,
    447,
    703,
    959,
    255,
    511,
    767,
    1023,
};

#endif
